<?php

namespace App\Controller;

use App\Library\System\Model\OrganizationModel;

class OrganizationController extends BaseController
{

    /**
     * Index action
     *
     * @return array|void
     */
    public function indexAction()
    {
        $oid = $this->route('id');
        $this->org = new OrganizationModel($oid);

        if (!$this->org->isValid()) {
            return $this->error(404);
        }

        echo $oid;
        die();
    }
}